User
in package
implements
UserInterface, PasswordAuthenticatedUserInterface
Table of Contents
Interfaces
- UserInterface
- PasswordAuthenticatedUserInterface
Properties
- $email : string|null
- $id : int|null
- $password : string
- $roles : array<string|int, mixed>
- $tasks : Collection
- $username : string|null
Methods
- __construct() : mixed
- addTask() : self
- eraseCredentials() : void
- getEmail() : string|null
- getId() : int|null
- getPassword() : string
- getRoles() : array<string|int, string>
- getTasks() : Collection<int, Task>
- getUserIdentifier() : string
- A visual identifier that represents this user.
- getUsername() : string|null
- removeTask() : self
- setEmail() : self
- setPassword() : self
- setRoles() : self
- setUsername() : self
Properties
private
string|null
$email
= null
$id
private
int|null
$id
= null
$password
private
string
$password
= null
The hashed password
$roles
private
array<string|int, mixed>
$roles
= []
$tasks
private
Collection
$tasks
$username
private
string|null
$username
= null
Methods
__construct()
public
__construct() : mixed
addTask()
public
addTask(Task $task) : self
Parameters
- $task : Task
Return values
selferaseCredentials()
public
eraseCredentials() : void
Tags
getEmail()
public
getEmail() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetPassword()
public
getPassword() : string
Tags
Return values
stringgetRoles()
public
getRoles() : array<string|int, string>
Tags
Return values
array<string|int, string>getTasks()
public
getTasks() : Collection<int, Task>
Return values
Collection<int, Task>getUserIdentifier()
A visual identifier that represents this user.
public
getUserIdentifier() : string
Tags
Return values
stringgetUsername()
public
getUsername() : string|null
Return values
string|nullremoveTask()
public
removeTask(Task $task) : self
Parameters
- $task : Task
Return values
selfsetEmail()
public
setEmail(string $email) : self
Parameters
- $email : string
Return values
selfsetPassword()
public
setPassword(string $password) : self
Parameters
- $password : string
Return values
selfsetRoles()
public
setRoles(array<string|int, string> $roles) : self
Parameters
- $roles : array<string|int, string>
Return values
selfsetUsername()
public
setUsername(string $username) : self
Parameters
- $username : string